package iO.J20240415;

import java.io.File;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: nn
 * Date: 2025-05-07
 * Time: 上午1:27
 */
public class Demo4 {
    public static void main(String[] args) {
        File dir = new File("./testDir/aaa/bbb/ccc/ddd");
        //mkdir 只能创建出一级目录
        //dir.mkdir();
        //mkdirs 可以创建多级目录
        dir.mkdirs();
        System.out.println(dir.isDirectory());//判断 File 对象代表的⽂件是否是⼀个⽬录
    }
}
